<?php
    $filename = './modules/koneksi.php';
    
    if (file_exists($filename)) {
        echo "";
    } else {
        die("FILE KONEKSI BELUM DIKONFIGURASI (Silahkan buka file ~~koneksi.php di folder modules sesuaikan konfigurasinya lalu rename dengan nama koneksi.php.)");
    }

	include("modules/dboper.php");
	$d_sistem = getConfig();
	
    $show = '';
    if($d_sistem['lihatHasil'] == 'PUBLIC' AND $d_sistem['jenisPolling'] == 'DOUBLE'){
         $show = '<div style="float:left"><button id="lihatHasil">Lihat Hasil</button></div>';
    } 

?>
<!DOCTYPE html>
<!--
(JANGKRIK POLLING) - SISTEM VOTING DAN EVALUASI ASISTEN - FASDT (FORUM ASISTEN SOFTWARE DEVELOPMENT TEAM)
OLEH AGUS SIGIT WISNU 
aswzen@bk.ru / asw.web.id / aswishnu.blog.amikom.ac.id
пожалуйста, не взломать его.

UPDATED BY D'POLLINGS GROUP 2014
-->
<!--[if lt IE 7 ]><html class="ie ie6" lang="en"> <![endif]-->
<!--[if IE 7 ]><html class="ie ie7" lang="en"> <![endif]-->
<!--[if IE 8 ]><html class="ie ie8" lang="en"> <![endif]-->
<!--[if (gte IE 9)|!(IE)]><!--><html lang="en"> <!--<![endif]-->
<head>

	<!-- Basic Page Needs
  ================================================== -->
	<meta charset="utf-8">
	<title>Sistem Voting dan Evaluasi Asisten</title>
	<meta name="description" content="">
	<meta name="author" content="Sigit" >

	<script type="text/javascript" src="modules/jquery.js"></script>
	<script type="text/javascript" src="modules/jquery-impromptu.js"></script>
	
	<!-- CSS
  ================================================== -->
	<link rel="stylesheet" href="style/base.css">
	<link rel="stylesheet" media="all" type="text/css" href="modules/jquery-impromptu.css" />

	<!-- Favicons
	================================================== -->
	<link rel="shortcut icon" href="style/images/favicon.ico">

<?php $detail=getDetailJaprak($d_sistem['japrak']); ?>
</head>
<body>
	<div class="container">
		<div class="formbox">
			<div class="fb_header"><img src="./style/images/logo.gif" width="25px"> Sivea 2.1 <span style="font:11px Tahoma;">(Sistem Voting dan Evaluasi Asisten)</span></div><div class="fb_statusbar"><div id="status"><img id="loading" src="style/images/loading.gif"/></div></div>	
			<hr>
			<div class="fb_info">Matakuliah : <?php echo $detail['nama_matkul']." | Kelas : ".$detail['nama_kelas'] ; ?></div>
			<hr>
			<div class="fb_content" id="fb_content">
				<p><?php echo $d_sistem['pesanDepan']; ?>
				</p><hr>
                <?php
                    echo $show;
                ?>
				<div class="fb_footer"> <input type="button" value="Selanjutnya" id="firstcheck" /></div>
			</div>
			<hr>
			<center>Forum Asisten STMIK Amikom Yogyakarta &copy; 2014</center>
		</div>
	</div>
</body>
	<script type="text/javascript" src="modules/system.js"></script>
    <link rel="stylesheet" href="modules/pretty.css" type="text/css" media="screen" charset="utf-8" />
    <script src="modules/pretty.js" type="text/javascript" charset="utf-8"></script>
</html>